package com.travel.server.manager.api;

import com.travel.server.manager.dto.request.EmptyRequest;
import com.travel.server.manager.dto.request.PageRequest;
import com.travel.server.manager.dto.request.question.DeleteQuestionRequest;
import com.travel.server.manager.dto.request.question.QueryQuestionDetailRequest;
import com.travel.server.manager.dto.request.question.UpdateQuestionRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: LiZhenhui
 * @Date: 2018/10/18 15:36
 * @Desc:
 */
public interface IQuestionService {

    /**
     * 查询问卷列表
     * @param request
     * @return
     */
    @RequestMapping(value = "query_question_list", method = RequestMethod.POST)
    Object queryQuestionList(PageRequest request);

    /**
     * 删除问卷
     * @param request
     * @return
     */
    @RequestMapping(value = "delete_question", method = RequestMethod.POST)
    Object deleteQuestion(DeleteQuestionRequest request);

    /**
     * 编辑问卷
     * @param request
     * @return
     */
    @RequestMapping(value = "update_question", method = RequestMethod.POST)
    Object updateQuestion(UpdateQuestionRequest request);

    /**
     * 查询问卷详情
     * @param request
     * @return
     */
    @RequestMapping(value = "query_question_detail", method = RequestMethod.POST)
    Object queryQuestionDetail(QueryQuestionDetailRequest request);

    /**
     * 查询问卷枚举
     * @param request
     * @return
     */
    @RequestMapping(value = "query_question_enum", method = RequestMethod.POST)
    Object queryQuestionEnum(EmptyRequest request);
}
